package ygw.study.designPatterns.decorator;

/**
 * <p>
 * 创建实现了 Shape 接口的抽象装饰类
 * </p>
 * <p>
 * Copyright:2021.All rights reserved.
 * </p>
 * <p>
 * Company:Zsoft
 * </p>
 * <p>
 * CreateDate:2021-05-21 12:51
 * </p>
 *
 * @author YuGongWen
 * @history Mender:YuGongWen；Date:2021-05-21 12:51；
 */
public abstract class ShapeDecorator implements Shape {
    protected Shape decoratedShape;

    public ShapeDecorator(Shape decoratedShape){
        this.decoratedShape = decoratedShape;
    }

    @Override
    public void draw(){
        decoratedShape.draw();
    }
}